#pragma once

#include "ui_EmotionWindow.h"

#include <QWidget>

class EmotionWindow : public QWidget {
    Q_OBJECT

public:
    EmotionWindow(QWidget* parent = nullptr);
    ~EmotionWindow();

private:
    void initContronl();

private slots:
    void addEmotion(int emotionNum);

signals:
    void signalEmotionWindowHide();
    void signalEmotionItemClicked(int emotionNum);

protected:
    // 事件过滤器
    bool eventFilter(QObject* obj, QEvent* event) override;

private:
    void paintEvent(QPaintEvent* event) override;

protected:
    // 重写焦点事件处理函数
    void focusOutEvent(QFocusEvent* event) override;

private:
    Ui::EmotionWindowClass ui;
};
